TreeGridLoaded ({ /* JSONP header, to be possible to load from xxx_Jsonp data source */ 
   "Cfg" : { "id": "MasterSimple", "DetailOn": "1", "SuppressCfg": "1", "Undo": "1", "CopyPasteTree": "3", "CopyCols": "2", "ExportType": "ForceBorder,TextType,Strings"   }, 
   "Cfg_2" : { "MainCol": "NAME", "HideRootTree": "1"   },  // For dragging rows from detail grid to master rows' children 
   "Cols" : [ 
      { "Name": "NAME", "Type": "Text", "GroupWidth": "1", "Width": "110"   }, 
      { "Name": "SURNAME", "Type": "Text"   }, 
      { "Name": "AGE", "Type": "Int"   }, 
      { "Name": "MARRIED", "Type": "Bool"   }, 
      { "Name": "ADDRESS", "Type": "Lines", "Visible": "0", "CanHide": "0"   }, 
      { "Name": "NOTE", "Type": "Lines", "Visible": "0", "CanHide": "0"   }  
   ], 
   "Panel" : { "Copy": "1"   }, 
   "Def" : [ 
      // The default row for all master rows 
      { "Name": "MAIN", "CDef": "DETAIL", "AcceptDef": "DETAIL", "Detail": "DetailSimple", "Expanded": "0", "CanExpand": "0"   }, 

      // The default row for all detail rows 
      { "Name": "DETAIL"   }, 

      // Default row for group rows 
      { "Name": "Group", "AggChildren": "1", "Expanded": "1", "CanFilter": "2"   }  
   ], 
   "Root" : { "CDef": "MAIN", "AcceptDef": "MAIN"   }, 
   "Header" : { "NAME": "First name"   }, 
   "Head" : [ 
      { "Kind":"Filter", 
         "NAMECanEdit": "0", "NAMEShowMenu": "0", "NAMEButton": "Defaults", "NAMEDefaults": "|*FilterOff|*RowsDefMAIN", "NAMERange": "1", 
         "SURNAMECanEdit": "0", "SURNAMEShowMenu": "0", "SURNAMEButton": "Defaults", "SURNAMEDefaults": "|*FilterOff|*RowsSibling", "SURNAMERange": "1"  
          }  
   ], 
   "Foot" : [ 
      { "Calculated": "1", "MenuName": "Summary", 
         "NAME": "Summary", "NAMECanEdit": "0", 
         "SURNAMECanEdit": "0", 
         "AGEFormula": "min()+\" - \"+max()", "AGEType": "Text", "AGEAlign": "Right", 
         "MARRIEDFormula": "count(\"MARRIED\",\"MARRIED\")+\" / \"+count()", "MARRIEDType": "Text", "MARRIEDAlign": "center"  
          }  
   ], 
   "Solid" : [ 
      { "Kind":"Toolbar1", "Cells": "SHOW,GROUP", 
         "SHOWType": "Select", "SHOWLabel": "Show detail on", "SHOWWidth": "80", 
         "SHOWDefaults": "|Focus|Click|Double click", "SHOW": "Focus", 
         "SHOWOnChange": "Grid.DetailOn = Grid.GetDefaultsIndex(Row,Col,Value) + 1", 

         "GROUPType": "Bool", "GROUPLabelRight": "Group rows by Surname", 
         "GROUPOnChange": "Grid.DoGrouping(Value?\"SURNAME\":\"\")"  
          }  
   ], 
   "Actions" : { "OnClickButtonAdd": "AddRowEnd", "OnClickPanelCopy": "CopyTree"   }, 
   "Toolbar" : { "Kind": "Toolbar2"   }, 
   "Body" : [ 
      [ 
         { "NAME": "James", "SURNAME": "Jackson", "AGE": "24", "MARRIED": "0", "Items": [
            { "ADDRESS": "3703 Tenth Ave, New York, NY 10034"   }, 
            { "ADDRESS": "201 Varick Street 4th Floor New York, NY 10014"   }, 
            { "ADDRESS": "1419 Westwood Blvd, Los Angeles, CA 90024"   }  
         ]}, 
         { "NAME": "Daniel", "SURNAME": "Moore", "AGE": "38", "MARRIED": "1", "Items": [
            { "ADDRESS": "11525 Del Amo Blvd., Cerritos, CA 90703"   }, 
            { "ADDRESS": "1419 Westwood Blvd, Los Angeles, CA 90024"   }  
         ]}, 
         { "NAME": "Lisa", "SURNAME": "Moore", "AGE": "12", "MARRIED": "0", "Items": [
            { "ADDRESS": "11525 Del Amo Blvd., Cerritos, CA 90703", "NOTE": "Daniel's daughter"   }  
         ]}, 
         { "NAME": "Nancy", "SURNAME": "Allen", "AGE": "65", "MARRIED": "1", "Items": [
            { "ADDRESS": "701 Howard Road SE, Washington, DC 20020"   }  
         ]}, 
      ], 
   ], 
}) /* End of JSONP header */ 